package com.qiqidream.admin.common.entity;

import com.qiqidream.admin.common.utils.tree.DataTree;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.List;

/**
 * 级联/树 选择器 实体
 * @author QiQiDream
 * @since 2019/12/5 15:07
 */
@Data
@Builder
public class CascadeOption implements DataTree<CascadeOption> {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "父级id")
    private Long parentId;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "子树")
    private List<CascadeOption> children;
}
